package com.watchthelan.service.administrator;

import java.util.List;

import com.watchthelan.domain.Administrator;
import com.watchthelan.repository.AdministratorDao;

public class SimpleAdministratorManager implements AdministratorManager {
	private AdministratorDao administratorDao;

	@Override
	public void addAdministrator(Administrator administrator) {
		administratorDao.addAdministrator(administrator);
	}

	@Override
	public void deleteAdministratorById(Long id) {
		administratorDao.deleteAdministratorById(id);
	}

	@Override
	public Administrator getAdministratorById(Long id) {
		return administratorDao.getAdministratorById(id);
	}
	
	@Override
	public Administrator getAdministratorByUsername(String username) {
		return administratorDao.getAdministratorByUsername(username);
	}

	@Override
	public List<Administrator> getAdministrators() {
		return administratorDao.getAdministrators();
	}

	@Override
	public void updateAdministrator(Administrator administrator) {
		administratorDao.updateAdministrator(administrator);
	}

	public AdministratorDao getAdministratorDao() {
		return administratorDao;
	}

	public void setAdministratorDao(AdministratorDao administratorDao) {
		this.administratorDao = administratorDao;
	}	
}
